<?php /* Smarty version 2.6.18, created on 2009-10-20 16:27:20
         compiled from news_post.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'news_post.html', 79, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "news_header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['_TINYMCE_DIR']; ?>
tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
	// General options
	mode : "exact",
	elements : "newsContent",
	theme : "advanced",
	language : "zh",
	skin : "o2k7",
	plugins : "safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups",

	relative_urls: false,
    remove_script_host: false,
    
	// Theme options
	theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,insertdate,inserttime,|,forecolor,backcolor",
	theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,",
	theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,pagebreak,help,|,code,template,preview,fullscreen",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true,

	// Example content CSS (should be your site CSS)
	content_css : "css/content.css",

	// Drop lists for link/image/media/template dialogs
	//template_external_list_url : "lists/template_list.js",
	//external_link_list_url : "lists/link_list.js",
	//external_image_list_url : "lists/image_list.js",
	//media_external_list_url : "lists/media_list.js",

	template_templates : [
	                  	{
	                  		title : "招聘信息",
	                  		src : "templates/editor_job.html",
	                  		description : "添加招聘模板..."
	                  	}
	                  ],
	                  	
	// Replace values for the template plugin
	template_replace_values : {
		username : "LD",
		staffid : "991234"
	}
});
</script>

</header>
<body class="oneColLiqCtrHdr">
<div id="container">

  <div id="header">
<h1><?php if ($this->_tpl_vars['action'] == 'add'): ?>添加<?php elseif ($this->_tpl_vars['action'] == 'edit'): ?>编辑<?php endif; ?> <?php echo $this->_tpl_vars['module_name']; ?>
 </h1>
  </div>

  <div id="mainContent">
  	<?php if ($this->_tpl_vars['error'] <> ''): ?><div id="error"><span style="color:red">Error:</span> <?php echo $this->_tpl_vars['error']; ?>
</div><?php endif; ?>
  	<?php if ($this->_tpl_vars['success'] <> ''): ?><div id="success"><span style="color:blue">Success:</span><?php echo $this->_tpl_vars['success']; ?>
</div><?php endif; ?>

	      <table width="600" height="500" border="0" align="center"> 
 
        <tr height="40">
	      
    <form id="form1" name="form1" method="post" action="?module=<?php echo $this->_tpl_vars['module']; ?>
&action=<?php if ($this->_tpl_vars['action'] == 'add'): ?>add<?php elseif ($this->_tpl_vars['action'] == 'edit'): ?>edit&nid=<?php echo $this->_tpl_vars['nid']; ?>
<?php endif; ?>">

        <tr height="40">
          <td>
          	<label>文章标题: <input type="text" name="newsTitle" id="newsTitle" class="inputBox" <?php if ($this->_tpl_vars['xTitle'] <> ''): ?>value="<?php echo $this->_tpl_vars['xTitle']; ?>
"<?php endif; ?> />
            </label>
          </td>
        </tr>
        <tr height="40">
         
         <td>
          	<label>选择分类: <select name="newsCats" id="newsCats">
	          <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['cat_options'],'selected' => $this->_tpl_vars['cat_id']), $this);?>

         	</select>
          </label>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <label>发布者: <select name="newsAuthor" id="newsAuthor">
           <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['auh_options'],'selected' => $this->_tpl_vars['auh_id']), $this);?>

              </select>
          </label>
          
          </td>
          
        </tr>
        <tr  height="40">
          <td><label>关键字:
              <input type="text" name="newsTags" id="newsTags" class="inputBox" <?php if ($this->_tpl_vars['xTag'] <> ''): ?>value="<?php echo $this->_tpl_vars['xTag']; ?>
"<?php endif; ?> />
          </label></td>
        </tr>
        <tr  height="200">
          <td>
            <label>内容：<br />
              <textarea name="newsContent" id="newsContent" cols="25" rows="15" class="tinymce"><?php if ($this->_tpl_vars['xContent'] <> ''): ?><?php echo $this->_tpl_vars['xContent']; ?>
<?php endif; ?></textarea>
            </label>
        
          </td>
        </tr>
        <tr>
          <td>
            <label>
              <input type="submit" name="newsSubmit" id="newsSubmit" value="<?php if ($this->_tpl_vars['action'] == 'add'): ?>添加<?php elseif ($this->_tpl_vars['action'] == 'edit'): ?>编辑<?php endif; ?>文章" />
           	</label>
           	 		<label><input name="reset" type="reset" value="重置" /></label>
           	</td>
        </tr>
    </form>
    
    
      </table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "news_footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>